import React, {Component} from 'react';
import {
    StyleSheet,
    Text,
    View,
    Image,
    TouchableOpacity,
} from 'react-native';
/**
 * 由 WangYu 创建
 * 日期 2017/10/11
 */
export default class StringUtil extends Component {

    constructor(props) {
        super(props);
    }

   static isPhoneNumber(phone){
       let reg = new RegExp('^1\\d{10}$');
       return reg.test(phone)&&phone !== '' && phone.startsWith('1', 0);
   }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
    },
});
